package unit_3;

import java.util.Scanner;
public class Demo06 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int k = (int)((a -50) / 10);
        String grade;
        switch (k){
            case 5:
            case 4:
                grade = "优秀";
                break;
            case 3:
                grade = "良好";
                break;
            case 2:
                grade = "中等";
                break;
            case 1:
                grade = "合格";
                break;
            default:
                grade = "不合格";
        }
        System.out.println(grade);
    }
}
